Array of excluded patterns. * * @return array */ public function add_combine_js_excluded_inline( $excluded = [] ): array { if ( ! is_array( $excluded ) ) { $excluded = (array) $excluded; } return array_merge( $excluded, $this->dynamic_lists->get_combine_js_excluded_inline() ); } /** * Add the preload exclusions to the array * * @param array $excluded Array of ignored URL regex. * * @return array */ public function add_preload_exclusions( $excluded = [] ): array { if ( ! is_array( $excluded ) ) { $excluded = (array) $excluded; } return array_merge( $excluded, $this->dynamic_lists->get_preload_exclusions() ); } /** * Add the js files exclusions to the array * * @param array $js_files Array of files. * * @return array */ public function add_js_exclude_files( $js_files = [] ): array { if ( ! is_array( $js_files ) ) { $js_files = (array) $js_files; } return array_merge( $js_files, $this->dynamic_lists->get_js_exclude_files() ); } /** * Add incompatible plugins to the array * * @param array $plugins Array of $plugins. * * @return array */ public function add_incompatible_plugins_to_deactivate( $plugins = [] ): array { return array_merge( (array) $plugins, $this->dynamic_lists->get_incompatible_plugins() ); } /** * Add the staging exclusions to the array * * @param array $stagings Array of staging urls. * * @return array */ public function add_staging_exclusions( $stagings = [] ): array { return array_merge( (array) $stagings, (array) $this->dynamic_lists->get_stagings() ); } }
Fatal error: Uncaught TypeError: WP_Rocket\Event_Management\Event_Manager::add_subscriber(): Argument #1 ($subscriber) must be of type WP_Rocket\Event_Management\Subscriber_Interface, string given, called in /htdocs/wp-content/plugins/wp-rocket/inc/Plugin.php on line 166 and defined in /htdocs/wp-content/plugins/wp-rocket/inc/classes/event-management/class-event-manager.php:33 Stack trace: #0 /htdocs/wp-content/plugins/wp-rocket/inc/Plugin.php(166): WP_Rocket\Event_Management\Event_Manager->add_subscriber('WP_Rocket\\Engin...') #1 /htdocs/wp-content/plugins/wp-rocket/inc/main.php(47): WP_Rocket\Plugin->load() #2 /htdocs/wp-includes/class-wp-hook.php(324): rocket_init('') #3 /htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #4 /htdocs/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #5 /htdocs/wp-settings.php(550): do_action('plugins_loaded') #6 /htdocs/wp-config.php(100): require_once('/htdocs/wp-sett...') #7 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #8 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #9 /htdocs/index.php(17): require('/htdocs/wp-blog...') #10 {main} thrown in /htdocs/wp-content/plugins/wp-rocket/inc/classes/event-management/class-event-manager.php on line 33